#include "movement.h"

void move_forward(uint8_t speed) {
	send_cmd_USART(MOVE_FORWARD,&speed,1);
}

void move_backward(uint8_t speed){
	send_cmd_USART(MOVE_BACKWARD,&speed,1);
}

void stop_moving() {
	move_forward(0);
}

void rotate(uint16_t degree){
	send_cmd_USART(ROTATE,&degree,2);
}

void rotate_right(char degree){
	send_cmd_USART(ROTATE_RIGHT,&degree,1);
}

void rotate_left(char degree){
	send_cmd_USART(ROTATE_LEFT,&degree,1);
}